<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php 
    
    $general = $this->general_model->select_entries();
    foreach ($general as $val)
                {
                   $gen_id = $val['gen_id'];
                   $gen_sitetitle = $val['gen_sitetitle'];
                   $gen_footer = $val['gen_footer'];
                   $gen_favicon = $val['gen_favicon'];
                }
    $seo = $this->seo_model->select_entries();
    foreach ($seo as $val)
                {
                   $seo_id = $val['seo_id'];
                   $seo_sitedescription = $val['seo_sitedescription'];
                   $seo_metakey = $val['seo_metakey'];
                   $seo_headercode = $val['seo_headercode'];
                   $seo_footercode = $val['seo_footercode'];
                } 
    
?>
<html>
 <head>
  <title><?=$gen_sitetitle?></title>
  
    <meta name="Generator" content="EditPlus">
    <meta name="Author" content="o2max triathlon">
    <meta name="Description" content="<?=$seo_sitedescription?>">
    <meta name="Keywords" content="<?=$seo_metakey?>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="icon" href="<?php echo base_url();?>images/icons/<?=$gen_favicon?>" type="image/x-icon">
    <link rel="stylesheet" href="<?php echo base_url();?>css/style.css">
    <link rel="stylesheet" href="<?php echo base_url();?>css/themes/base/jquery.ui.all.css">
    <link rel="stylesheet" href="<?php echo base_url();?>css/demos.css">
    <link href="<?php echo base_url();?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/shadowbox.css">
    
    <script src="<?php echo base_url();?>js/jquery-1.6.2.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.core.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.widget.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.mouse.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.sortable.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.accordion.js"></script>
    <script src="<?php echo base_url();?>js/ui/jquery.ui.datepicker.js"></script>
<!--    <script type="text/javascript" src="<?php echo base_url();?>uploadify/jquery-1.4.2.min.js"></script>-->
    <script type="text/javascript" src="<?php echo base_url();?>uploadify/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>uploadify/jquery.uploadify.v2.1.4.min.js"></script>
    
    <script type="text/javascript" src="<?php echo base_url();?>js/shadowbox.js"></script>
    <script type="text/javascript">
        Shadowbox.init({},setupDemos);
        function setupDemos(){
            Shadowbox.setup("a.mustang-gallery", {
                gallery:        "mustang",
                continuous:     true,
                counterType:    "skip"
            });
        }
    </script>
    
    
    <script>
    $(function() {
            var stop = false;
            $( "#accordion h3" ).click(function( event ) {
                    if ( stop ) {
                            event.stopImmediatePropagation();
                            event.preventDefault();
                            stop = false;
                    }
            });
            $( "#accordion" )
                    .accordion({
                            header: "> div > h3"
                    })
                    .sortable({
                            axis: "y",
                            handle: "h3",
                            stop: function() {
                                    stop = true;
                            }
                    });
    });
    
    $(function() {
            $( ".datepicker" ).datepicker({
                    changeMonth: true,
                    changeYear: true
            });
    });
    

    $(document).ready(function() {
        $('#fileupload').uploadify({
          'uploader'    : '<?php echo base_url()?>uploadify/uploadify.swf',
          'script'      : '<?php echo base_url()?>uploadify/uploadify.php',//echo base_url();uploadify/uploadify.php,uploadgallery.php
          'cancelImg'   : '<?php echo base_url()?>uploadify/cancel.png',
          'folder' : '/images/gallery',///o2max/codeigniter/images/gallery
          //'folder'      : '<?php echo base_url();?>uploads',  //C:/AppServ/www/project 
          'multi'       : true,
          'auto'        : true,
          'onAllComplete' : function(event,data) {
            alert(data.filesUploaded + ' files uploaded successfully!');
          }

        });         

    });
    </script>
    

 </head>

 <body>
     